<div class="row">
<div class="col-xs-12">

	<!-- #section:pages/error -->
	<div class="error-container">
		<div class="well">
			<h1 class="grey lighter smaller">
				<span class="blue bigger-125">
					<i class="ace-icon fa fa-sitemap"></i>
				</span>
				系统提示！
			</h1>

			<hr>
			<h3 class="lighter smaller"><?php echo $error;?></h3>

			<div>
				<div class="space"></div>
				<h4 class="smaller">若不选择将在（<span id='time_s'><?php echo $time?></span>）秒自动跳转</h4>
			</div>

			<hr>
			<div class="space"></div>

			<div class="center">
				<a href="<?php echo empty($url)?'javascript:history.back();':$url;?>" class="btn btn-grey">
					<i class="ace-icon fa fa-arrow-left"></i>
					返回上一页
				</a>
			</div>
		</div>
	</div>
</div><!-- /.col -->
</div>
<script type="text/javascript">
timer(<?php echo $time-1?>,'time_s');
function timer(intDiff,id){
	var it = window.setInterval(function(){
		if(intDiff >= 0){
			$('#'+id).html(intDiff);
		}else{
			window.clearInterval(it);
			<?php if($url){?>
			location.href='<?php echo $url;?>';
			<?php }else{?>
			history.back();
			<?php }?>
		}
		intDiff--;
	}, 1000);
}
</script>